<?php /* Smarty version 2.6.16, created on 2012-03-17 17:25:32
         compiled from video_update.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'video_update.tpl', 170, false),array('modifier', 'count', 'video_update.tpl', 207, false),array('modifier', 'inarray', 'video_update.tpl', 210, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "top.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php echo '
<script language="javascript" type="text/javascript">
j(document).ready(function(){
	getPageId(\'';  echo $this->_tpl_vars['FabricArr']['game_id'];  echo '\',\'';  echo $this->_tpl_vars['FabricArr']['ladder_id'];  echo '\');
});

function getPageId(type,id)
{	
	
	j.ajax({
			type:\'POST\',
			url:\'get_game_ladder.php\',
			data: \'type=\'+type+\'&id=\'+id,
			dataType:\'json\',
			success:function(jData){
			
				if(jData.flag == 1)
				{
					j(\'#ladder_id_td\').html(jData.html);
				}
			},
			error: function(XMLHttpRequest, textStatus, errorThrown){
				j(".contactus-block").html("Some champion error occoured. Please report to system administrator.</div>");
			}
		});
}

function checking()
{
var opt=jQuery("#is_video_url").val();
	if(opt==\'N\')
	{
		jQuery("#url_star").html(\'\');
		jQuery("#check_doc").html(\'*\');
		jQuery("#check_img").html(\'*\');
		jQuery("#doc_up").html(\'\');
		jQuery("#img_up").html(\'\');
	}
	else
	{
		jQuery("#url_star").html(\'*\');
		jQuery("#check_doc").html(\'\');
		jQuery("#check_img").html(\'\');
		jQuery("#doc_up").html(\'\');
		jQuery("#img_up").html(\'\');
	}
}
function getChangeGame(id)
{	
	//alert(id);
	j(\'#ladder\').hide();
	j(\'#versus\').hide();
	j(\'#type\').hide();
	j(\'#champion\').hide();
	j(\'#team\').hide();
	j(\'#map\').hide();
	j(\'#mode\').hide();
	j(\'#class\').hide();
	j(\'#ladder_gap\').hide();
	j(\'#versus_gap\').hide();
	j(\'#type_gap\').hide();
	j(\'#champion_gap\').hide();
	j(\'#team_gap\').hide();
	j(\'#map_gap\').hide();
	j(\'#mode_gap\').hide();
	j(\'#class_gap\').hide();
	j(\'#champion_gap\').hide();
	j.ajax({
			url:\'game_details.php?is_vedio=1\',
			data: \'id=\'+id,
			type:\'post\',		
			dataType:\'json\',	
		   success:function(resp){
		   //alert(resp.map);
		   if(resp.ladder==\'Y\')
		   {
		   		j(\'#ladder\').show();
				j(\'#ladder_gap\').show();
			}			
			 if(resp.versus==\'Y\')
			 {
		   		/*j(\'#versus\').css(\'display\',\'block\');
				j(\'#versus\').html(resp.versus_str);*/
				j(\'#versus\').show();
				j(\'#versus_gap\').show();
			}	
			 if(resp.type==\'Y\')
		   	{
				j(\'#type\').show();				
				j(\'#type_gap\').show();
			}	
			 if(resp.champion==\'Y\')
		   	{
				j(\'#champion\').show();
				j(\'#champion_gap\').show();
			}	
			 if(resp.team==\'Y\')
		   	{
				j(\'#team\').show();
				j(\'#team_gap\').show();
			}
			 if(resp.map==\'Y\')
		   	{
				j(\'#map\').show();
				j(\'#map_gap\').show();
			}
			 if(resp.mode==\'Y\')
		   	{
				j(\'#mode\').show();
				j(\'#mode_gap\').show();
			}
			 if(resp.class==\'Y\')
		   	{
				j(\'#class\').show();
				j(\'#class_gap\').show();
			}
				}
		});
}
function keyCheck(eventObj, obj)
{
    var keyCode
 
    // Check For Browser Type
    if (document.all){
        keyCode=eventObj.keyCode
    }
    else{
        keyCode=eventObj.which
    }
 
    var str=obj.value
 
    if(keyCode==46){
        if (str.indexOf(".")>0){
            return false
        }
    }
 
    if((keyCode<46 || keyCode >57)   &&   (keyCode >31)){ // Allow only integers and decimal points
        return false
    }
    
    return true
}
</script>
'; ?>

<h2><?php echo $this->_tpl_vars['SubmitButton']; ?>
</h2>
<div class="tabarea">
<div class="tabcontent">
<p align="right" class="fields">Fields marked with <span class="red">*</span> are required</p>
<form action="video_update.php?action=trans" method="post" name="frm_admin" id="frm_admin" enctype="multipart/form-data">
		<table width="100%" border="0" cellspacing="4" cellpadding="0">
		  <?php if ($this->_tpl_vars['err_msgs'] != ""): ?>     
			<tr>
				<td class="simpleText" colspan="2"><ul><?php echo $this->_tpl_vars['err_msgs']; ?>
</ul></td>
			</tr>
			<tr>
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">&nbsp;</td>
		  </tr>
		  <?php endif; ?>
		   <tr>
			<td width="30%" align="left" valign="middle" class="plaintxt">Game<span class="red">*</span>:</td>
			<td width="70%" align="left" valign="middle"><label>
			 <select name="game_id" id="game_id" class="selectbox" onchange="getChangeGame(this.value)">
				<option value="">Select</option>
				
				<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['GameArr'],'selected' => $this->_tpl_vars['FabricArr']['game_id']), $this);?>

			</select>
			</label></td>
		 </tr>
		 <!--<tr>
			<td height="28" align="left" class="plaintxt">Ladder<span class="red">*</span>:</td>
			<td height="28" align="left" class="maintext" id="ladder_id_td">
				<select name="ladder_id" id="ladder_id">
					<option value="">Select</option>
				</select>
			</td>
		 </tr>-->
		
		  <?php if ($this->_tpl_vars['FabricArr']['is_ladder'] == 'Y'): ?>
		   <tr id="ladder_gap">
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">&nbsp;</td>
		  </tr>
		  <?php endif; ?>
		 <tr id="ladder" <?php if ($this->_tpl_vars['FabricArr']['is_ladder'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td height="28" align="left" class="plaintxt">Ladder:</td>
			<td height="28" align="left" class="maintext" >
				<select name="ladder_id" id="ladder_id">
					<option value="">Select</option>
					<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['LadderArr'],'selected' => $this->_tpl_vars['FabricArr']['ladder_id']), $this);?>

				</select>
			</td>
		 </tr>
		  <tr id="versus_gap" <?php if ($this->_tpl_vars['FabricArr']['is_versus'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">&nbsp;</td>
		  </tr>

		
		  <tr id="versus"   <?php if ($this->_tpl_vars['FabricArr']['is_versus'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td align="left" valign="top" class="plaintxt">Versus:</td>	
			<td width="70%" align="left" valign="middle" class="plaintxt">
			<?php if (count($this->_tpl_vars['VersusArr']) != 0): ?>
		 	<?php unset($this->_sections['RowVersus']);
$this->_sections['RowVersus']['name'] = 'RowVersus';
$this->_sections['RowVersus']['loop'] = is_array($_loop=$this->_tpl_vars['VersusArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['RowVersus']['show'] = true;
$this->_sections['RowVersus']['max'] = $this->_sections['RowVersus']['loop'];
$this->_sections['RowVersus']['step'] = 1;
$this->_sections['RowVersus']['start'] = $this->_sections['RowVersus']['step'] > 0 ? 0 : $this->_sections['RowVersus']['loop']-1;
if ($this->_sections['RowVersus']['show']) {
    $this->_sections['RowVersus']['total'] = $this->_sections['RowVersus']['loop'];
    if ($this->_sections['RowVersus']['total'] == 0)
        $this->_sections['RowVersus']['show'] = false;
} else
    $this->_sections['RowVersus']['total'] = 0;
if ($this->_sections['RowVersus']['show']):

            for ($this->_sections['RowVersus']['index'] = $this->_sections['RowVersus']['start'], $this->_sections['RowVersus']['iteration'] = 1;
                 $this->_sections['RowVersus']['iteration'] <= $this->_sections['RowVersus']['total'];
                 $this->_sections['RowVersus']['index'] += $this->_sections['RowVersus']['step'], $this->_sections['RowVersus']['iteration']++):
$this->_sections['RowVersus']['rownum'] = $this->_sections['RowVersus']['iteration'];
$this->_sections['RowVersus']['index_prev'] = $this->_sections['RowVersus']['index'] - $this->_sections['RowVersus']['step'];
$this->_sections['RowVersus']['index_next'] = $this->_sections['RowVersus']['index'] + $this->_sections['RowVersus']['step'];
$this->_sections['RowVersus']['first']      = ($this->_sections['RowVersus']['iteration'] == 1);
$this->_sections['RowVersus']['last']       = ($this->_sections['RowVersus']['iteration'] == $this->_sections['RowVersus']['total']);
?>
			<input type="checkbox" name="submited_versus[]"  value="<?php echo $this->_tpl_vars['VersusArr'][$this->_sections['RowVersus']['index']]['versus_id']; ?>
" 
<?php if (((is_array($_tmp=$this->_tpl_vars['VersusArr'][$this->_sections['RowVersus']['index']]['versus_id'])) ? $this->_run_mod_handler('inarray', true, $_tmp, $this->_tpl_vars['submited_versus']) : in_array($_tmp, $this->_tpl_vars['submited_versus']))): ?>checked<?php endif; ?> /> 
			<?php echo $this->_tpl_vars['VersusArr'][$this->_sections['RowVersus']['index']]['versus_title']; ?>
		
			<br />
			<?php endfor; endif; ?>
			<?php endif; ?>
			</td>	
		</tr>
		  <tr id="team_gap" <?php if ($this->_tpl_vars['FabricArr']['is_team'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">&nbsp;</td>
		  </tr>
		
		  <tr id="team" <?php if ($this->_tpl_vars['FabricArr']['is_team'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td align="left" valign="top" class="plaintxt">Team:</td>	
			<td width="70%" align="left" valign="middle" class="plaintxt">
			<?php if (count($this->_tpl_vars['TeamArr']) != 0): ?>
		 	<?php unset($this->_sections['RowTeam']);
$this->_sections['RowTeam']['name'] = 'RowTeam';
$this->_sections['RowTeam']['loop'] = is_array($_loop=$this->_tpl_vars['TeamArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['RowTeam']['show'] = true;
$this->_sections['RowTeam']['max'] = $this->_sections['RowTeam']['loop'];
$this->_sections['RowTeam']['step'] = 1;
$this->_sections['RowTeam']['start'] = $this->_sections['RowTeam']['step'] > 0 ? 0 : $this->_sections['RowTeam']['loop']-1;
if ($this->_sections['RowTeam']['show']) {
    $this->_sections['RowTeam']['total'] = $this->_sections['RowTeam']['loop'];
    if ($this->_sections['RowTeam']['total'] == 0)
        $this->_sections['RowTeam']['show'] = false;
} else
    $this->_sections['RowTeam']['total'] = 0;
if ($this->_sections['RowTeam']['show']):

            for ($this->_sections['RowTeam']['index'] = $this->_sections['RowTeam']['start'], $this->_sections['RowTeam']['iteration'] = 1;
                 $this->_sections['RowTeam']['iteration'] <= $this->_sections['RowTeam']['total'];
                 $this->_sections['RowTeam']['index'] += $this->_sections['RowTeam']['step'], $this->_sections['RowTeam']['iteration']++):
$this->_sections['RowTeam']['rownum'] = $this->_sections['RowTeam']['iteration'];
$this->_sections['RowTeam']['index_prev'] = $this->_sections['RowTeam']['index'] - $this->_sections['RowTeam']['step'];
$this->_sections['RowTeam']['index_next'] = $this->_sections['RowTeam']['index'] + $this->_sections['RowTeam']['step'];
$this->_sections['RowTeam']['first']      = ($this->_sections['RowTeam']['iteration'] == 1);
$this->_sections['RowTeam']['last']       = ($this->_sections['RowTeam']['iteration'] == $this->_sections['RowTeam']['total']);
?>
			<input type="checkbox" name="submited_team[]"  value="<?php echo $this->_tpl_vars['TeamArr'][$this->_sections['RowTeam']['index']]['team_id']; ?>
" 
<?php if (((is_array($_tmp=$this->_tpl_vars['TeamArr'][$this->_sections['RowTeam']['index']]['team_id'])) ? $this->_run_mod_handler('inarray', true, $_tmp, $this->_tpl_vars['submited_team']) : in_array($_tmp, $this->_tpl_vars['submited_team']))): ?>checked<?php endif; ?> /> 
			<?php echo $this->_tpl_vars['TeamArr'][$this->_sections['RowTeam']['index']]['team_title']; ?>
		
			<br />
			<?php endfor; endif; ?>
			<?php endif; ?>
			</td>	
		</tr>
		
		  <tr id="type_gap" <?php if ($this->_tpl_vars['FabricArr']['is_type'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">&nbsp;</td>
		  </tr>
		 
		 <tr id="type" <?php if ($this->_tpl_vars['FabricArr']['is_type'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td align="left" valign="top" class="plaintxt">Type:</td>	
			<td width="70%" align="left" valign="middle" class="plaintxt">
			<?php if (count($this->_tpl_vars['TypeArr']) != 0): ?>
		 	<?php unset($this->_sections['RowType']);
$this->_sections['RowType']['name'] = 'RowType';
$this->_sections['RowType']['loop'] = is_array($_loop=$this->_tpl_vars['TypeArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['RowType']['show'] = true;
$this->_sections['RowType']['max'] = $this->_sections['RowType']['loop'];
$this->_sections['RowType']['step'] = 1;
$this->_sections['RowType']['start'] = $this->_sections['RowType']['step'] > 0 ? 0 : $this->_sections['RowType']['loop']-1;
if ($this->_sections['RowType']['show']) {
    $this->_sections['RowType']['total'] = $this->_sections['RowType']['loop'];
    if ($this->_sections['RowType']['total'] == 0)
        $this->_sections['RowType']['show'] = false;
} else
    $this->_sections['RowType']['total'] = 0;
if ($this->_sections['RowType']['show']):

            for ($this->_sections['RowType']['index'] = $this->_sections['RowType']['start'], $this->_sections['RowType']['iteration'] = 1;
                 $this->_sections['RowType']['iteration'] <= $this->_sections['RowType']['total'];
                 $this->_sections['RowType']['index'] += $this->_sections['RowType']['step'], $this->_sections['RowType']['iteration']++):
$this->_sections['RowType']['rownum'] = $this->_sections['RowType']['iteration'];
$this->_sections['RowType']['index_prev'] = $this->_sections['RowType']['index'] - $this->_sections['RowType']['step'];
$this->_sections['RowType']['index_next'] = $this->_sections['RowType']['index'] + $this->_sections['RowType']['step'];
$this->_sections['RowType']['first']      = ($this->_sections['RowType']['iteration'] == 1);
$this->_sections['RowType']['last']       = ($this->_sections['RowType']['iteration'] == $this->_sections['RowType']['total']);
?>
			<input type="checkbox" name="submited_type[]"  value="<?php echo $this->_tpl_vars['TypeArr'][$this->_sections['RowType']['index']]['type_id']; ?>
" 
<?php if (((is_array($_tmp=$this->_tpl_vars['TypeArr'][$this->_sections['RowType']['index']]['type_id'])) ? $this->_run_mod_handler('inarray', true, $_tmp, $this->_tpl_vars['submited_type']) : in_array($_tmp, $this->_tpl_vars['submited_type']))): ?>checked<?php endif; ?> /> 
			<?php echo $this->_tpl_vars['TypeArr'][$this->_sections['RowType']['index']]['type_title']; ?>
		
			<br />
			<?php endfor; endif; ?>
			<?php endif; ?>
			</td>	
		</tr>
		
		  <tr id="champion_gap" <?php if ($this->_tpl_vars['FabricArr']['is_champion'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">&nbsp;</td>
		  </tr>
	
		 <tr id="champion" <?php if ($this->_tpl_vars['FabricArr']['is_champion'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td align="left" valign="top" class="plaintxt">Champion:</td>	
			<td width="70%" align="left" valign="middle" class="plaintxt">
			<?php if (count($this->_tpl_vars['ChampionArr']) != 0): ?>
		 	<?php unset($this->_sections['RowChampion']);
$this->_sections['RowChampion']['name'] = 'RowChampion';
$this->_sections['RowChampion']['loop'] = is_array($_loop=$this->_tpl_vars['ChampionArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['RowChampion']['show'] = true;
$this->_sections['RowChampion']['max'] = $this->_sections['RowChampion']['loop'];
$this->_sections['RowChampion']['step'] = 1;
$this->_sections['RowChampion']['start'] = $this->_sections['RowChampion']['step'] > 0 ? 0 : $this->_sections['RowChampion']['loop']-1;
if ($this->_sections['RowChampion']['show']) {
    $this->_sections['RowChampion']['total'] = $this->_sections['RowChampion']['loop'];
    if ($this->_sections['RowChampion']['total'] == 0)
        $this->_sections['RowChampion']['show'] = false;
} else
    $this->_sections['RowChampion']['total'] = 0;
if ($this->_sections['RowChampion']['show']):

            for ($this->_sections['RowChampion']['index'] = $this->_sections['RowChampion']['start'], $this->_sections['RowChampion']['iteration'] = 1;
                 $this->_sections['RowChampion']['iteration'] <= $this->_sections['RowChampion']['total'];
                 $this->_sections['RowChampion']['index'] += $this->_sections['RowChampion']['step'], $this->_sections['RowChampion']['iteration']++):
$this->_sections['RowChampion']['rownum'] = $this->_sections['RowChampion']['iteration'];
$this->_sections['RowChampion']['index_prev'] = $this->_sections['RowChampion']['index'] - $this->_sections['RowChampion']['step'];
$this->_sections['RowChampion']['index_next'] = $this->_sections['RowChampion']['index'] + $this->_sections['RowChampion']['step'];
$this->_sections['RowChampion']['first']      = ($this->_sections['RowChampion']['iteration'] == 1);
$this->_sections['RowChampion']['last']       = ($this->_sections['RowChampion']['iteration'] == $this->_sections['RowChampion']['total']);
?>
			<input type="checkbox" name="submited_champion[]"  value="<?php echo $this->_tpl_vars['ChampionArr'][$this->_sections['RowChampion']['index']]['champion_id']; ?>
" 
<?php if (((is_array($_tmp=$this->_tpl_vars['ChampionArr'][$this->_sections['RowChampion']['index']]['champion_id'])) ? $this->_run_mod_handler('inarray', true, $_tmp, $this->_tpl_vars['submited_champion']) : in_array($_tmp, $this->_tpl_vars['submited_champion']))): ?>checked<?php endif; ?> /> 
			<?php echo $this->_tpl_vars['ChampionArr'][$this->_sections['RowChampion']['index']]['champion_title']; ?>
		
			<br />
			<?php endfor; endif; ?>
			<?php endif; ?>
			</td>	
		</tr>
		
		 <tr id="class_gap" <?php if ($this->_tpl_vars['FabricArr']['is_class'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">&nbsp;</td>
		  </tr>
	
		 <tr id="class" <?php if ($this->_tpl_vars['FabricArr']['is_class'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td align="left" valign="top" class="plaintxt">Class:</td>	
			<td width="70%" align="left" valign="middle" class="plaintxt">
			<?php if (count($this->_tpl_vars['ClassArr']) != 0): ?>
		 	<?php unset($this->_sections['RowClass']);
$this->_sections['RowClass']['name'] = 'RowClass';
$this->_sections['RowClass']['loop'] = is_array($_loop=$this->_tpl_vars['ClassArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['RowClass']['show'] = true;
$this->_sections['RowClass']['max'] = $this->_sections['RowClass']['loop'];
$this->_sections['RowClass']['step'] = 1;
$this->_sections['RowClass']['start'] = $this->_sections['RowClass']['step'] > 0 ? 0 : $this->_sections['RowClass']['loop']-1;
if ($this->_sections['RowClass']['show']) {
    $this->_sections['RowClass']['total'] = $this->_sections['RowClass']['loop'];
    if ($this->_sections['RowClass']['total'] == 0)
        $this->_sections['RowClass']['show'] = false;
} else
    $this->_sections['RowClass']['total'] = 0;
if ($this->_sections['RowClass']['show']):

            for ($this->_sections['RowClass']['index'] = $this->_sections['RowClass']['start'], $this->_sections['RowClass']['iteration'] = 1;
                 $this->_sections['RowClass']['iteration'] <= $this->_sections['RowClass']['total'];
                 $this->_sections['RowClass']['index'] += $this->_sections['RowClass']['step'], $this->_sections['RowClass']['iteration']++):
$this->_sections['RowClass']['rownum'] = $this->_sections['RowClass']['iteration'];
$this->_sections['RowClass']['index_prev'] = $this->_sections['RowClass']['index'] - $this->_sections['RowClass']['step'];
$this->_sections['RowClass']['index_next'] = $this->_sections['RowClass']['index'] + $this->_sections['RowClass']['step'];
$this->_sections['RowClass']['first']      = ($this->_sections['RowClass']['iteration'] == 1);
$this->_sections['RowClass']['last']       = ($this->_sections['RowClass']['iteration'] == $this->_sections['RowClass']['total']);
?>
			<input type="checkbox" name="submited_class[]"  value="<?php echo $this->_tpl_vars['ClassArr'][$this->_sections['RowClass']['index']]['class_id']; ?>
" 
<?php if (((is_array($_tmp=$this->_tpl_vars['ClassArr'][$this->_sections['RowClass']['index']]['class_id'])) ? $this->_run_mod_handler('inarray', true, $_tmp, $this->_tpl_vars['submited_class']) : in_array($_tmp, $this->_tpl_vars['submited_class']))): ?>checked<?php endif; ?> /> 
			<?php echo $this->_tpl_vars['ClassArr'][$this->_sections['RowClass']['index']]['class_title']; ?>
		
			<br />
			<?php endfor; endif; ?>
			<?php endif; ?>
			</td>	
		</tr>
		
		 <tr id="map_gap" <?php if ($this->_tpl_vars['FabricArr']['is_map'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">&nbsp;</td>
		  </tr>
	
		 <tr id="map" <?php if ($this->_tpl_vars['FabricArr']['is_map'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td align="left" valign="top" class="plaintxt">Map:</td>	
			<td width="70%" align="left" valign="middle" class="plaintxt">
			<?php if (count($this->_tpl_vars['MapArr']) != 0): ?>
		 	<?php unset($this->_sections['RowMap']);
$this->_sections['RowMap']['name'] = 'RowMap';
$this->_sections['RowMap']['loop'] = is_array($_loop=$this->_tpl_vars['MapArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['RowMap']['show'] = true;
$this->_sections['RowMap']['max'] = $this->_sections['RowMap']['loop'];
$this->_sections['RowMap']['step'] = 1;
$this->_sections['RowMap']['start'] = $this->_sections['RowMap']['step'] > 0 ? 0 : $this->_sections['RowMap']['loop']-1;
if ($this->_sections['RowMap']['show']) {
    $this->_sections['RowMap']['total'] = $this->_sections['RowMap']['loop'];
    if ($this->_sections['RowMap']['total'] == 0)
        $this->_sections['RowMap']['show'] = false;
} else
    $this->_sections['RowMap']['total'] = 0;
if ($this->_sections['RowMap']['show']):

            for ($this->_sections['RowMap']['index'] = $this->_sections['RowMap']['start'], $this->_sections['RowMap']['iteration'] = 1;
                 $this->_sections['RowMap']['iteration'] <= $this->_sections['RowMap']['total'];
                 $this->_sections['RowMap']['index'] += $this->_sections['RowMap']['step'], $this->_sections['RowMap']['iteration']++):
$this->_sections['RowMap']['rownum'] = $this->_sections['RowMap']['iteration'];
$this->_sections['RowMap']['index_prev'] = $this->_sections['RowMap']['index'] - $this->_sections['RowMap']['step'];
$this->_sections['RowMap']['index_next'] = $this->_sections['RowMap']['index'] + $this->_sections['RowMap']['step'];
$this->_sections['RowMap']['first']      = ($this->_sections['RowMap']['iteration'] == 1);
$this->_sections['RowMap']['last']       = ($this->_sections['RowMap']['iteration'] == $this->_sections['RowMap']['total']);
?>
			<input type="checkbox" name="submited_map[]"  value="<?php echo $this->_tpl_vars['MapArr'][$this->_sections['RowMap']['index']]['map_id']; ?>
" 
<?php if (((is_array($_tmp=$this->_tpl_vars['MapArr'][$this->_sections['RowMap']['index']]['map_id'])) ? $this->_run_mod_handler('inarray', true, $_tmp, $this->_tpl_vars['submited_map']) : in_array($_tmp, $this->_tpl_vars['submited_map']))): ?>checked<?php endif; ?> /> 
			<?php echo $this->_tpl_vars['MapArr'][$this->_sections['RowMap']['index']]['map_title']; ?>
		
			<br />
			<?php endfor; endif; ?>
			<?php endif; ?>
			</td>	
		</tr>
		
		 <tr id="mode_gap" <?php if ($this->_tpl_vars['FabricArr']['is_mode'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">&nbsp;</td>
		  </tr>
	
		 <tr id="mode" <?php if ($this->_tpl_vars['FabricArr']['is_mode'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td align="left" valign="top" class="plaintxt">Mode:</td>	
			<td width="70%" align="left" valign="middle" class="plaintxt">
			<?php if (count($this->_tpl_vars['ModeArr']) != 0): ?>
		 	<?php unset($this->_sections['RowMode']);
$this->_sections['RowMode']['name'] = 'RowMode';
$this->_sections['RowMode']['loop'] = is_array($_loop=$this->_tpl_vars['ModeArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['RowMode']['show'] = true;
$this->_sections['RowMode']['max'] = $this->_sections['RowMode']['loop'];
$this->_sections['RowMode']['step'] = 1;
$this->_sections['RowMode']['start'] = $this->_sections['RowMode']['step'] > 0 ? 0 : $this->_sections['RowMode']['loop']-1;
if ($this->_sections['RowMode']['show']) {
    $this->_sections['RowMode']['total'] = $this->_sections['RowMode']['loop'];
    if ($this->_sections['RowMode']['total'] == 0)
        $this->_sections['RowMode']['show'] = false;
} else
    $this->_sections['RowMode']['total'] = 0;
if ($this->_sections['RowMode']['show']):

            for ($this->_sections['RowMode']['index'] = $this->_sections['RowMode']['start'], $this->_sections['RowMode']['iteration'] = 1;
                 $this->_sections['RowMode']['iteration'] <= $this->_sections['RowMode']['total'];
                 $this->_sections['RowMode']['index'] += $this->_sections['RowMode']['step'], $this->_sections['RowMode']['iteration']++):
$this->_sections['RowMode']['rownum'] = $this->_sections['RowMode']['iteration'];
$this->_sections['RowMode']['index_prev'] = $this->_sections['RowMode']['index'] - $this->_sections['RowMode']['step'];
$this->_sections['RowMode']['index_next'] = $this->_sections['RowMode']['index'] + $this->_sections['RowMode']['step'];
$this->_sections['RowMode']['first']      = ($this->_sections['RowMode']['iteration'] == 1);
$this->_sections['RowMode']['last']       = ($this->_sections['RowMode']['iteration'] == $this->_sections['RowMode']['total']);
?>
			<input type="checkbox" name="submited_mode[]"  value="<?php echo $this->_tpl_vars['ModeArr'][$this->_sections['RowMode']['index']]['mode_id']; ?>
" 
<?php if (((is_array($_tmp=$this->_tpl_vars['ModeArr'][$this->_sections['RowMode']['index']]['mode_id'])) ? $this->_run_mod_handler('inarray', true, $_tmp, $this->_tpl_vars['submited_mode']) : in_array($_tmp, $this->_tpl_vars['submited_mode']))): ?>checked<?php endif; ?> /> 
			<?php echo $this->_tpl_vars['ModeArr'][$this->_sections['RowMode']['index']]['mode_title']; ?>
		
			<br />
			<?php endfor; endif; ?>
			<?php endif; ?>
			</td>	
		</tr>
		
		   <tr>
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">&nbsp;</td>
		  </tr>
		 
		 <tr>
			<td width="30%" align="left" valign="middle" class="plaintxt">Video Title<span class="red">*</span>:</td>
			<td width="70%" align="left" valign="middle"><label>
			  <input type="text" name="video_title" id="video_title" class="textbox" value="<?php echo $this->_tpl_vars['FabricArr']['video_title']; ?>
"/>
			</label></td>
		 </tr>
		 

		 <tr>
			<td width="30%" align="left" valign="middle" class="plaintxt">Video Type<span class="red">*</span>:</td>
			<td width="70%" align="left" valign="middle"><label>
			<select name="is_video_url" id="is_video_url" onchange="checking();">
			<option value='Y' <?php if ($this->_tpl_vars['FabricArr']['is_video_url'] == 'Y'): ?>selected<?php endif; ?>> URL</option>
			<option value='N' <?php if ($this->_tpl_vars['FabricArr']['is_video_url'] == 'N'): ?>selected<?php endif; ?>>Upload Video</option>
			</select>
			
			</label></td>
		 </tr>

		 <tr>
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">&nbsp;</td>
		  </tr>
		 
		  <tr>
			<td width="30%" align="left" valign="middle" class="plaintxt">Youtube Url<?php if ($this->_tpl_vars['url_link'] == 'Y' || $this->_tpl_vars['video_id'] == '' && $this->_tpl_vars['action'] != 'trans'): ?><span class="red" id="url_star">*</span><?php else: ?><span class="red" id="url_star"></span><?php endif; ?>:</td>
			<td width="70%" align="left" valign="middle"><label>
			  <input type="text" name="video_url" id="video_url" class="textbox" value="<?php echo $this->_tpl_vars['FabricArr']['video_url']; ?>
"/>
			</label></td>
		 </tr>

		 <tr><td valign="top" align="left" class="plaintxt">
			</td><td valign="top" align="left" class="plaintxt">
			<div class="msgbox">
			[i.e http://www.youtube.com/watch?v=Di7G4nbpyDg].
			</div>
			</td>
		 </tr>
		
		<tr>
			<td align="left" valign="top" class="plaintxt"><?php echo $this->_tpl_vars['DisplayVideoControlStr']; ?>
</td>
			<td align="left" valign="top" class="plaintxt"></td>
			<td align="left" valign="top" class="plaintxt">
			</td>
		 </tr>

		  </tr>
		
			<tr>
			<td align="left" valign="top" class="plaintxt"><?php echo $this->_tpl_vars['DisplayImageControlStr']; ?>
<span class="red" id="img_star"></span></td>
			<td align="left" valign="top" class="plaintxt"></td>
			<td align="left" valign="top" class="plaintxt">
			</td>
		 </tr>
		  <tr>
			<td width="20%" align="left" valign="top" class="plaintxt">Time Length (min):</td>
			<td width="80%" align="left" valign="middle" class="plaintxt"><label>
			<input type="text" name="time_length" id="time_length" class="textbox" value="<?php echo $this->_tpl_vars['FabricArr']['time_length']; ?>
" onkeypress="return keyCheck(event, this);"/>
			</label></td>
	    </tr>
        <tr><td valign="top" align="left" class="plaintxt">
			</td><td valign="top" align="left" class="plaintxt">
			<div class="msgbox">
			[Format will be   mm.ss].
			</div>
			</td>
		 </tr>
		  <tr>
			<td align="left" valign="top" class="plaintxt">Description:</td>
			<td align="left" valign="top"><label>
			  <textarea rows="3" cols="23"  name="description" id="description" class="bigger" style="height:110px;"><?php echo $this->_tpl_vars['FabricArr']['description']; ?>
</textarea>
			</label></td>
	    </tr>
		
		  
		
		  <tr>
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">&nbsp;</td>
		  </tr>
		  <tr>
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">
			 <input name="video_id" id="video_id" type="hidden"  value="<?php echo $this->_tpl_vars['video_id']; ?>
"/>
			 <input name="u_id" id="u_id" type="hidden" value="<?php echo $this->_tpl_vars['u_id']; ?>
"/>
			 <input name="utype" id="utype" type="hidden" value="<?php echo $this->_tpl_vars['utype']; ?>
"/>
			 <input name="imageField" type="submit" class="addsadmin" value="<?php echo $this->_tpl_vars['SubmitButton']; ?>
" <?php if ($this->_tpl_vars['video_id'] == ''): ?> style="width:120px;"<?php else: ?>style="width:145px;"<?php endif; ?>/>
&nbsp;&nbsp;&nbsp;<input name="" type="button" class="cancel" value="Cancel" onclick="window.location.href='video_manager.php?u_id=<?php echo $this->_tpl_vars['u_id']; ?>
&utype=<?php echo $this->_tpl_vars['utype']; ?>
&IsPreserved=Y'"/></td>
		  </tr>
		  <tr>
		  <td>&nbsp;</td>
		  <td>&nbsp;</td>
		  </tr>
		</table>
</form>

	</div>
 </div>
    <p>&nbsp;</p>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "bottom.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>